<!-- /* Description for file.
 * RSS提醒设置
 * @copyright     Copyright 2008-2010, PHInfo Services Inc. (http://www.phinfoservices.com)
 * @package       ues
 * @subpackage    ues/app/views/resources
 * @since         ues
 * @version       V0.0.1
 * @modifiedby    张朋2011年0701
 * @lastmodified  张海杰2011年0702
 */
 -->
<?php
echo $html->css ( 'tab' );
echo $javascript->link ( 'jquery' );
?>
<script type="text/javascript">
$(function(){
	$(".up").click(function(){
		var delArr = $(".tab1 :checkbox:checked");
		if(delArr.length==0)
		{
			alert("请选择你要设置的项!");
			return;
		}
		var ids="";
		$(":checkbox[checked=true]").each(function(i,n)
		{
			var id=$(this).val();
			ids=ids+id+"-";
		 });
		$(".ids").val(ids);
		$(".dform").submit();
	});
});
</script>

<!-- 当前位置-->
<div id="tabmenubar">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td class="tabmenubartitle1"><?php echo  __('YourPosition');//您现在的位置：?></td>
		<td class="tabmenubartitle2"><?php echo __('Systemconfigs');//一级目录
										   echo '>';echo __('Rss Set');//二级目录
										   echo '>';?>
									<?php echo $html->tag('span', __('userrss',true));//当前操作地用span加粗?> 						  
		</td>
	</tr>
</table>
</div>
<!-- 当前位置-->
<div class="actions"  id="notices-actions">
	<ul>
		<li style="width:100px"><form action="<?php echo ROOT_WEB_PATH; ?>/systemconfigs/uprss" method="post" class="dform">
		<input type="hidden" value="" name="ids" class="ids"></input>
		<a class="up"><?php echo $html->image('rss.gif', array('border'=>'0','class'=>'up','title'=> '设置RSS提醒'));?>&nbsp;设置RSS提醒</a>
		</form>
		</li>
	</ul>
</div>

<!-- RSS提醒设置 -->
<div id="nav1" style="width:97%">
<table width="100%" cellpadding="0" cellspacing="0" class="tab1">
	<tr>
		<th width="70px"><?php echo __('Selected');?></th>
		<th ><?php echo __('Username');?></th>
	</tr>
<?php for ($index = 0; $index < count($result); $index++) {
	$id=$result[$index]['users']['id'];
	$username=$result[$index]['users']['username'];
	$hasrss=$result[$index]['users']['hasrss'];
	?>
		<tr class=normal onmouseover='this.className= "over " '
			onmouseup='this.className= "over " '
			onmouseout='this.className= "normal " '>
			<td>
<!-- 选择 -->				
		<input type="checkbox" class="ch" name='id' value="<?php echo $id;?>" <?php if ($hasrss==1) {
		echo "checked=checked";}?>/>
			</td>
	<td><?php echo $username;?></td>
		</tr> 
	<?php
}?>
</table>
</div>
<!-- RSS提醒设置 -->


